//查询会员并充值的store

import axios from 'axios'
import http from '../../../http/http'
import * as URL from '../../../http/api'

const state = {

};

const actions = {
    //查询会员
    selectMember({commit},obj){
        // console.log(obj);
        return http({
            url:URL.memberSelectMessage,
            method:'post',
            data:obj,
        }).then(res=>{
            // console.log(res);
            return res.data;
        });
    },

    //会员充值
    addMemberMoney({commit},obj){
        // console.log(obj);
        return http({
            url:URL.memberTopUp,
            method:'post',
            data:obj,
        }).then(res=>{
            // console.log(res);
            return res.data;
        });
    }

};

const mutations = {

};

export default{
    state,
    actions,
    mutations
}